Revisiting the Visitor: the "Just Do It" Pattern

نویسنده

  • Didier Verna
چکیده

While software design patterns are a generally useful concept, they are often (and mistakenly) seen as ready-made universal recipes for solving common problems. In a way, the danger is that programmers stop thinking about their actual problem, and start looking for pre-cooked solutions in some design pattern book instead. What people usually forget about design patterns is that the underlying programming language plays a major role in the exact shape such or such pattern will have on the surface. The purpose of this paper is twofold: we show why design pattern expression is intimately linked to the expressiveness of the programming language in use, and we also demonstrate how a blind application of them can in fact lead to very poorly designed code.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Iterative, prototype-driven development of a whiteboard feature for the Distributed Party Programming tool Saros

ActivityReceiver implementing the visitor pattern. However, there somehow existed a second “consumer” structure and its purpose was not completely clear to me, especially as it caused some overhead without knowing how to use it. It was meant to give the possibility to intercept an activity and I was told that it all makes sense. It seemed that the expected way to add a new activity was just to ...

متن کامل

CZT: A Framework for Z Tools

The Community Z Tools (CZT) project is an open-source Java framework for building formal methods tools for Z and Z dialects. It also includes a set of tools for parsing, typechecking, transforming and printing standard Z specifications in LTEX, Unicode or XML formats. This paper gives an overview of the CZT framework, including an introduction to its visitor design pattern that makes it possibl...

متن کامل

The Functions and Planning of Visitor Centres in Regional Tourism

The values of any specific society can be interpreted from the functions of the physical infrastructure it develops. Cultures which are sports oriented will support massive stadiums, those with spiritual concerns maintain great cathedrals, mosques and shrines, and those with environmental concerns create physical structures to celebrate and protect the places they value. In the world of tourism...

متن کامل

Visual Analysis of Human Movement Data

In this paper we present our visual analysis results of visitor movement data in an amusement park during a weekend. We assume most people move among several amusement park spots in a specific pattern. And for few people whose movement pattern don’t belong to any group we assume, we pay special concern about their route for they may related to a crime happened in amusement park during the weeke...

متن کامل

Reflective Visitor Pattern

The Visitor pattern wraps associated operations that are performed on the elements of an object structure into a separate object. It allows the software designer to define new kinds of operations over the object structure without changing the classes of this structure. But a well-known drawback of this standard Visitor structure is that extending the object structure is hard. This paper present...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • J. UCS

دوره 16  شماره 

صفحات  -

تاریخ انتشار 2010